<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${title}--${sys.name}</title>
<script>
	var code = "${code}";
	var op = "${op}";
	onload = function() {
		if(code == "1"||code == "2"||code == "3"||code == "4"||code == "5"||code == "6") {
			if(code=="3") {
				alert("请在"+(parseInt(op)/1000)+"秒后登录！");
			}
			jumpToLogin();
		}
	}
	function jumpToLogin() {
		var tt = document.getElementById("time");
		document.getElementById("login").style.display = "block";
		window._timer = window.setInterval(function() {
			tt.innerText = tt.innerText-1;
			if(tt.innerText=="0") {
				clearInterval(window._timer);
				window.location = "/";
			}
		},1000);
	}
</script>
</head>
<body>
	<br/>
	<font color="red">${message } (${code})</font>
	<div id="deal">
		<div id="login" style="display: none">
			<a href="/">立刻登录</a>
			&nbsp; 页面在<span id="time">5</span>秒后自动跳到登录页面...
		</div>
	</div>
</body>
</html>